package tech.aistar.day05.onetoone.demo01;

/**
 * 本类用来演示:
 *
 * @author: success
 * @date: 2021/3/12 3:17 下午
 */
public class TestHusbandDemo {
    public static void main(String[] args) {
        //带参构造进行赋值
        Wife wife = new Wife(1,"马蓉",null);
        Husband husband = new Husband(1,"王宝强",wife);
        wife.setHusband(husband);

        System.out.println(husband);

        System.out.println(husband.getWife());
    }
}
